//
//  HMHomeTableViewController.swift
//  SinaWeibo
//
//  Created by apple on 16/9/22.
//  Copyright © 2016年 itcast. All rights reserved.
//

import UIKit

class HMHomeTableViewController: UITableViewController {

    override func viewDidLoad() {
        super.viewDidLoad()
        
        //        let btn = UIButton()
        //        btn.setImage(#imageLiteral(resourceName: "navigationbar_pop"), for: .normal)
        //        btn.setImage(#imageLiteral(resourceName: "navigationbar_pop_highlighted"), for: .highlighted)
        //        btn.sizeToFit()
        //        //添加点击事件
        //        btn.addTarget(self, action: #selector(push), for: .touchUpInside)
        navigationItem.rightBarButtonItem = UIBarButtonItem(imageName: "navigationbar_pop", target: self, action: #selector(push))

    }
    
    //按钮的监听事件
    @objc private func push() {
        let temp = HMTempViewController()
//        temp.hidesBottomBarWhenPushed = true
        //push到子页面
        navigationController?.pushViewController(temp, animated: true)
    }

    

}
